import java.util.ArrayList;
import java.util.List;

public class Zone {
    private String name;
    private List<Animal> animals;

    public Zone(String name) {
        this.name = name;
        this.animals = new ArrayList<>();
    }

    public String getName() {
        return name;
    }

    public void addAnimal(Animal animal) {
        animals.add(animal);
    }

    public void removeAnimal(Animal animal) {
        animals.remove(animal);
    }

    public void displayAnimals() {
        System.out.println("Animals in " + name + " zone:");
        animals.forEach(Animal::display);
    }
}
